package entity;

import java.util.*;

public class TypeEntity {
    private String expression;
    private String code;
    private Pet redPet;
    private Pet innerPet;
    private String[] array;
    private List<String> list;
    private Set<String> set;
    private Map<String,String> map;
    private Properties props;
    private String emptyValue;
    private String nullValue;

    public void printAll(){
        System.out.println("expression："+expression);
        System.out.println("code："+code);
        if (redPet!=null){
            redPet.introduce();
        }
        if (innerPet!=null){
            innerPet.introduce();
        }
        System.out.println("array："+ Arrays.toString(array));
        System.out.println("list："+list);
        System.out.println("set："+set);
        System.out.println("map："+map);
        System.out.println("props："+props);
        System.out.println("emptyValue："+emptyValue);
        System.out.println("nullValue："+nullValue);
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Pet getRedPet() {
        return redPet;
    }

    public void setRedPet(Pet redPet) {
        this.redPet = redPet;
    }

    public Pet getInnerPet() {
        return innerPet;
    }

    public void setInnerPet(Pet innerPet) {
        this.innerPet = innerPet;
    }

    public String[] getArray() {
        return array;
    }

    public void setArray(String[] array) {
        this.array = array;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public Set<String> getSet() {
        return set;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public Properties getProps() {
        return props;
    }

    public void setProps(Properties props) {
        this.props = props;
    }

    public String getEmptyValue() {
        return emptyValue;
    }

    public void setEmptyValue(String emptyValue) {
        this.emptyValue = emptyValue;
    }

    public String getNullValue() {
        return nullValue;
    }

    public void setNullValue(String nullValue) {
        this.nullValue = nullValue;
    }
}
